<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

//获取新闻栏目接口
//Route::get('api/cat','api/cat/read');
Route::get('api/:version/cat','api/:version.cat/read');        //当你设置了api版本控制的时候
Route::get('api/:version/index','api/:version.index/index');   //首页接口
Route::get('api/:version/init','api/:version.index/init');     //客户端初始化接口



//Route::get('api/:version/news','api/:version.news/index');    //某一个栏目下的列表页面
Route::resource('api/:ver/news', 'api/:ver.news');

Route::get('api/:version/rank','api/:version.rank/index');

Route::post('api/:version/image','api/:version.image/image');   //图片上传
Route::get('api/:version/td','api/:version.TestData/index');    //字符串配置多数据库连接
Route::get('api/:version/fci','api/:version.TestData/fci');     //字符串配置多数据库连接



Route::get('api/:version/db1','api/:version.TestData/db1');     //配置项多数据库连接
Route::get('api/:version/db2','api/:version.TestData/db2');     //配置项多数据库连接

Route::get('api/:version/db3','api/:version.TestData/db3');

############################################
Route::get('api/:version/gameList','api/:version.Game/gameList');